package com.swust.controller;

import com.swust.dao.UserInfoDao;
import com.swust.entity.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class UserInfoController {
    @Autowired
    UserInfoDao userInfoDao;

    @GetMapping("/getUserInfo")
    public Mono<UserInfo> getUserInfo() {
        return userInfoDao.findById(1L);
    }
}
